/**
 * Alibaba.com.cn Inc.
 * Copyright (c) 2004-2021 All Rights Reserved.
 */
package com.yongbao.common.enums;

/**
 *
 * @author zhanghong
 * @version BooleanEnum.java, v 0.1 2022/4/27 23:34 下午 BooleanEnum Exp $$
 */
public enum BooleanEnum {
    /**
     * 否
     */
    FALSE(0),
    /**
     * 是
     */
    TRUE(1),

    YES(true),

    NOT(false);

    private int code;
    private boolean value;

    BooleanEnum(int code) {
        this.code = code;
    }
    BooleanEnum(boolean value) {
        this.value = value;
    }

    public int getCode() {
        return code;
    }
    public boolean getValue() {
        return value;
    }
}
